Skip to content

Fix grpc-web-text request deframing - #399

Open
zZHorizonZz wants to merge 1 commit into
eclipse-vertx:mainfrom
zZHorizonZz:fix/grpc-web-text-deframing
Open

zZHorizonZz wants to merge 1 commit into
eclipse-vertx:mainfrom
zZHorizonZz:fix/grpc-web-text-deframing

Conversation

@zZHorizonZz

@zZHorizonZz zZHorizonZz commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Motivation:

Over HTTP/1.x only the first message of a body gets through. The interop tests miss this since they send one message over HTTP/1.1.

Changes:

  • TextMessageDeframer decodes base64 incrementally and hands the bytes to Http2GrpcMessageDeframer
  • Use it for WEB_TEXT on any HTTP version
  • Add a client streaming test and HTTP/2 variants of the grpc-web tests

Motivation:

The server picked the grpc-web-text deframer by HTTP version. Over
HTTP/2 the base64 body was read as binary frames, so every call failed
with RESOURCE_EXHAUSTED. Over HTTP/1.x the whole body was decoded as a
single message, so a body carrying several messages lost all but the
first.

Changes:

- TextMessageDeframer decodes the base64 as it arrives, including bodies
  made of separately padded pieces, and hands the bytes to
  Http2GrpcMessageDeframer
- Use it for WEB_TEXT on every HTTP version
- Add a client streaming test and run the gRPC-Web tests over HTTP/2
@zZHorizonZz
zZHorizonZz force-pushed the fix/grpc-web-text-deframing branch from f13ccc7 to 45db5a0 Compare December 4, 2026 19:47
@vietj

vietj commented Dec 5, 2026

Copy link
Copy Markdown
Member

why is incremental decoding of base64 required ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants